Skip to content

Enhance Pool Stats & Dashboard with Hashrate Tracking & Latest Block Rewards#140

Open
Rakni1988 wants to merge 1 commit intopdxwebdev:masterfrom
Rakni1988:dev_pool
Open

Enhance Pool Stats & Dashboard with Hashrate Tracking & Latest Block Rewards#140
Rakni1988 wants to merge 1 commit intopdxwebdev:masterfrom
Rakni1988:dev_pool

Conversation

@Rakni1988
Copy link
Contributor

This PR introduces significant improvements to the pool's data tracking and dashboard visualization.

Changes & Enhancements:

  • New MongoDB database: yadacoinpool to separate pool statistics from the node database.
  • New collection: pool_hashrate_stats for storing real-time pool hashrate, network hashrate, miners, and difficulty over time.
  • Indexes for performance:
    • time index for efficient querying
    • date index with TTL (25 hours) for automatic data cleanup
  • New dashboard charts:
    • Pool Hashrate & Miners: Displays pool hashrate, miners count, and workers count.
    • Network Hashrate & Difficulty: Shows network difficulty and hashrate trends.
  • Improved latest block reward display:
    • Now based on real transaction data instead of static calculations.
    • Includes separate values for miners and masternodes.
    • Displays reward per masternode.

Benefits:

  • Improved pool performance with dedicated stats storage.
  • Cleaner database with automatic TTL-based log management.
  • Real-time data visualization with accurate reward calculations.

This update ensures a more efficient, scalable, and informative mining pool dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant